import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const TokenoosKey = 'Admin-Tokenoos'
const UserInfo = 'User-Info'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function getTokenoos() {
  return Cookies.get(TokenoosKey)
}

export function setTokenoos(token) {
  return Cookies.set(TokenoosKey, token)
}

export function removeTokenoos() {
  return Cookies.remove(TokenoosKey)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getInfo() {
  return Cookies.get(UserInfo)
}

export function setInfo(info) {
  return Cookies.set(UserInfo, info)
}

export function removeInfo() {
  return Cookies.remove(UserInfo)
}
